// 获取轮播图
import {ref,onMounted} from 'vue'
import {getBanner} from '@/api/home.js'
export const BannerList=()=>{
  const list=ref([])
  const getBannerList=async ()=>{
    const {result:res}=await getBanner('2')
    list.value=res
  }
  getBannerList()
  // onMounted(()=>{getBannerList()})
  return {
    list
  }
}